﻿using TimedText.Formatting;
using TimedText.Informatics;
using TimedText.Rendering;
using TimedText.Styling;

namespace Microsoft.Office.PowerPoint.STAMP.TimedText
{
    class PPTRenderer : IRenderObject
    {
        #region IRenderObject Members

        public void Open()
        {
            // do nothing
        }

        public void Close()
        {
            // do nothing
        }

        public void VisitElement(FormattingObject obj)
        {
            // do nothing
        }

        public void Clear(System.Windows.Media.Color color)
        {
            // do nothing
        }

        public void SetOpacity(byte level)
        {
            // do nothing
        }

        public void DrawLine(System.Windows.Media.Color color, double startX, double startY, double endX, double endY)
        {
            // do nothing
        }

        public void DrawRectangle(System.Windows.Media.Color color, double startX, double startY, double endX, double endY)
        {
            // do nothing
        }

        public void DrawText(string text, Font font, System.Windows.Media.Color fill, TextDecorationAttributeValue decoration, double startX, double startY, MetadataInformation data)
        {
            // do nothing
        }

        public void DrawOutlineText(string text, Font font, System.Windows.Media.Color fill, TextOutline outline, double startX, double startY, MetadataInformation data)
        {
            // do nothing
        }

        public Rectangle ComputeTextExtent(string text, Font font)
        {
            // do nothing
            return new Rectangle();
        }

        public void PushClip(Rectangle rectangle)
        {
            // do nothing
        }

        public void PopClip()
        {
            // do nothing
        }

        public void PushScroll(double horizontalDistance, double verticalDistance)
        {
            // do nothing
        }

        public double Width()
        {
            // do nothing
            return 0;
        }

        public double Height()
        {
            // do nothing
            return 0;
        }

        #endregion
    }
}
